#define _CRT_SECURE_NO_WARNINGS
#include"Red_BlackTree.h"
#include<vector>
void test1()
{
	RBTree<int, int> rbt;
	vector<int> v1;
	srand(time(0));
	int N = 10000;
	v1.reserve(N);
	for (size_t i = 0; i < N; i++)
	{
		v1.push_back(rand());
	}
	for (auto e : v1)
	{
		rbt.Insert(make_pair(e, e));
		cout << "Insert:" << e << "->" << rbt.Is_balance() << endl;
	}
}
int main()
{
	test1();
	return 0;
}